package cn.zzdt4j.common.toolkit;

import cn.zzdt4j.common.extension.function.NoArgsConsumer;

/**
 * The type Condition util.
 *
 * @author by <a href="mailto:ligang941012@gmail.com">gang.Li</a>
 * @since 2023 /11/8 15:58
 */
public class ConditionUtil {
    public static void condition(boolean condition, NoArgsConsumer trueConsumer, NoArgsConsumer falseConsumer) {
        if (condition) {
            trueConsumer.accept();
        } else {
            falseConsumer.accept();
        }
    }
}
